<html>

<head>
<meta charset="UTF-8">
<title>添加类型</title>
</head>
<body>
	<!-- MiniColors -->
	<script src="/miniColor/jquery.minicolors.js"></script>
	<link rel="stylesheet" href="/miniColor/jquery.minicolors.css">
	<script src="/js/system.js"></script>
	<link rel="stylesheet" type="text/css" href="/css/form.css">
	<script type="text/javascript">
		$(".navigation span:first").text("类型管理");
		/*颜色选择器*/
		$(document).ready( function() {
			$("#hue-demo").minicolors();
		});
	</script>
	<#include "/head.ftl"/>
	<div class="content">
		<div class="tab">
			<div class="tab-header">
				<a title="返回" class="btn btn-setting" onclick="back(this)">
					<i class="iconfont icon-undo"></i>
				</a> <a title="刷新" class="btn btn-setting" onclick="refresh(this)">
					<i class="iconfont icon-refresh"></i>
				</a> 
			</div>
			<div class="form-content">
				<form id="typeForm" method="post">
					<fieldset>
						<table>
							<tr>
								<td>类型名称：</td>
								<td><input type="text" name="name" placeholder="类型名称不大于10个字符" maxlength="10" value="${(type.name)?default('')}"></td>
								<td>类型值：</td>
								<td><input type="text" name="value" placeholder="请输入3位以内的数字" maxlength="3" onkeyup="this.value=this.value.replace(/[^\d]/g,'') " onafterpaste="this.value=this.value.replace(/[^\d]/g,'')" value="${(type.value)?default('')}"></td>
							</tr>
							<tr>
								<td>模块名称：</td>
								<td><input type="text" name="module" placeholder="模块名称不大于10个字符" maxlength="10" value="${(type.module)?default('')}"></td>
								<td>背景颜色：</td>
								<td><input type="text" name="color" placeholder="请点击选择背景色" value="${(type.color)?default('#000000')}" id="hue-demo" class="demo" data-control="hue"></td>
							</tr>
							<tr>
								<td style="text-align: center;" colspan="4">
									<input type="hidden" name="id" value="${(type.id)?default('')}">
									<button class="button" style="padding: 11px 40px;">保存</button>
								</td>
							</tr>
						</table>
					</fieldset>
				</form>
			</div>
		</div>

	</div>
</body>
</html>